a = input()
b = input()
if a>b:
    print(1)
elif a == b:
    print(0)
else:
    print(-1)